package com.quartzd.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.quartzd.entity.JobInfo;
import com.quartzd.mapper.JobInfoMapper;
import org.springframework.stereotype.Service;

/**
 * @author huxuehao
 **/
@Service
public class QuartzInfoServiceImpl extends ServiceImpl<JobInfoMapper, JobInfo> implements QuartzInfoService {
    private final JobInfoMapper jobStatusMapper;

    public QuartzInfoServiceImpl(JobInfoMapper jobStatusMapper) {
        this.jobStatusMapper = jobStatusMapper;
    }

    @Override
    public void insertOrUpdate(JobInfo jobStatus) {
        jobStatusMapper.insertOrUpdate(jobStatus);
    }
}
